package models;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class SysTable extends Model {
	public String catalog;
	public String schema;
	@Required
	public String name;
	public String desc;
	@OneToMany(mappedBy="table", cascade=CascadeType.ALL)
	public List<SysField> fields;
	
	public String toString(){
		return this.name;
	}
	
}
